using System;
using MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;

namespace MinimalistFoodStreet.BackEnd.Server.Server.RequestExtend.Tables 
{
	public static class AdministratorsRequestCreateExtend 
	{
		public static Administrator ToCreateEntity(this RequestCreateAdministratorsDto dto)
		{
			return new Administrator 
			{

				AAccountId = dto.accountId,
				AName = dto.name,
				AAge = dto.age,
			};
		}
	}
}